\hypertarget{db_event_type_8php}{
\section{dbEventType.php File Reference}
\label{db_event_type_8php}\index{dbEventType.php@{dbEventType.php}}
}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{db_event_type_8php_afdd9df452dadf5d1c5a74dfa117ac305}{setupdbEvent} ()
\item 
\hyperlink{db_event_type_8php_ace006e552ee91f1cd151839686a13af4}{addEvent} (\$i)
\item 
\hyperlink{db_event_type_8php_afc3fb14245e16d0940d8d3810fe70821}{deleteEvent} (\$i)
\item 
\hyperlink{db_event_type_8php_aa12f3dbceb105669249519e94428603c}{geteventID} (\$i)
\item 
\hyperlink{db_event_type_8php_a3ef58f6d4d31fe853b79c8859e7a6912}{getallEvents} (\$ed)
\item 
\hyperlink{db_event_type_8php_a0e4f7f208b6271f56ffddb34cefc4912}{updatedbEvent} (\$ed)
\item 
\hyperlink{db_event_type_8php_a97ec3085b563efa6bcb4ed51066da959}{selectdbEvent} (\$eventDate)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Adds events to database.

Copyright 2011 by UNHM CIS605 project Donate team. This program is part of BBBS and YWCA Donation management system. Donate is free software. It comes with absolutely no warranty. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation (see $<$\href{http://www.gnu.org/licenses/}{\tt http://www.gnu.org/licenses/} for more information).

\begin{DoxyVersion}{Version}
March 7, 2011 
\end{DoxyVersion}
\begin{DoxyAuthor}{Author}
Laura Cassella 
\end{DoxyAuthor}


\subsection{Function Documentation}
\hypertarget{db_event_type_8php_ace006e552ee91f1cd151839686a13af4}{
\index{dbEventType.php@{dbEventType.php}!addEvent@{addEvent}}
\index{addEvent@{addEvent}!dbEventType.php@{dbEventType.php}}
\subsubsection[{addEvent}]{\setlength{\rightskip}{0pt plus 5cm}addEvent (
\begin{DoxyParamCaption}
\item[{\$}]{i}
\end{DoxyParamCaption}
)}}
\label{db_event_type_8php_ace006e552ee91f1cd151839686a13af4}
Add an event to the dbEvent table. 
\begin{DoxyParams}[1]{Parameters}
int & {\em \$i} & the auto-\/generated eventID \\
\hline
\end{DoxyParams}
\hypertarget{db_event_type_8php_afc3fb14245e16d0940d8d3810fe70821}{
\index{dbEventType.php@{dbEventType.php}!deleteEvent@{deleteEvent}}
\index{deleteEvent@{deleteEvent}!dbEventType.php@{dbEventType.php}}
\subsubsection[{deleteEvent}]{\setlength{\rightskip}{0pt plus 5cm}deleteEvent (
\begin{DoxyParamCaption}
\item[{\$}]{i}
\end{DoxyParamCaption}
)}}
\label{db_event_type_8php_afc3fb14245e16d0940d8d3810fe70821}
Remove an event from the dbEvent table. \begin{DoxyReturn}{Returns}
TRUE or FALSE. FALSE on failure. 
\end{DoxyReturn}
\hypertarget{db_event_type_8php_a3ef58f6d4d31fe853b79c8859e7a6912}{
\index{dbEventType.php@{dbEventType.php}!getallEvents@{getallEvents}}
\index{getallEvents@{getallEvents}!dbEventType.php@{dbEventType.php}}
\subsubsection[{getallEvents}]{\setlength{\rightskip}{0pt plus 5cm}getallEvents (
\begin{DoxyParamCaption}
\item[{\$}]{ed}
\end{DoxyParamCaption}
)}}
\label{db_event_type_8php_a3ef58f6d4d31fe853b79c8859e7a6912}
Get all rows from the dbEvent table ordered by eventDate. \begin{DoxyReturn}{Returns}
TRUE or FALSE. FALSE on failure. 
\end{DoxyReturn}
\hypertarget{db_event_type_8php_aa12f3dbceb105669249519e94428603c}{
\index{dbEventType.php@{dbEventType.php}!geteventID@{geteventID}}
\index{geteventID@{geteventID}!dbEventType.php@{dbEventType.php}}
\subsubsection[{geteventID}]{\setlength{\rightskip}{0pt plus 5cm}geteventID (
\begin{DoxyParamCaption}
\item[{\$}]{i}
\end{DoxyParamCaption}
)}}
\label{db_event_type_8php_aa12f3dbceb105669249519e94428603c}
Get a single row from the dbEvent table matching a particular eventID. \begin{DoxyReturn}{Returns}
TRUE or FALSE. FALSE on failure. 
\end{DoxyReturn}
\hypertarget{db_event_type_8php_a97ec3085b563efa6bcb4ed51066da959}{
\index{dbEventType.php@{dbEventType.php}!selectdbEvent@{selectdbEvent}}
\index{selectdbEvent@{selectdbEvent}!dbEventType.php@{dbEventType.php}}
\subsubsection[{selectdbEvent}]{\setlength{\rightskip}{0pt plus 5cm}selectdbEvent (
\begin{DoxyParamCaption}
\item[{\$}]{eventDate}
\end{DoxyParamCaption}
)}}
\label{db_event_type_8php_a97ec3085b563efa6bcb4ed51066da959}
Selects all events from the database for a given date. 
\begin{DoxyParams}[1]{Parameters}
date & {\em \$ed} & is an event date. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a result set or false. 
\end{DoxyReturn}
\hypertarget{db_event_type_8php_afdd9df452dadf5d1c5a74dfa117ac305}{
\index{dbEventType.php@{dbEventType.php}!setupdbEvent@{setupdbEvent}}
\index{setupdbEvent@{setupdbEvent}!dbEventType.php@{dbEventType.php}}
\subsubsection[{setupdbEvent}]{\setlength{\rightskip}{0pt plus 5cm}setupdbEvent (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{db_event_type_8php_afdd9df452dadf5d1c5a74dfa117ac305}
Functions to create, add, update, delete, get, getall and select from the dbEvent table in the database. This table is used with the Event class. Creates the dbEvent table in the database. \begin{DoxyReturn}{Returns}
TRUE or FALSE. FALSE on failure. 
\end{DoxyReturn}
\hypertarget{db_event_type_8php_a0e4f7f208b6271f56ffddb34cefc4912}{
\index{dbEventType.php@{dbEventType.php}!updatedbEvent@{updatedbEvent}}
\index{updatedbEvent@{updatedbEvent}!dbEventType.php@{dbEventType.php}}
\subsubsection[{updatedbEvent}]{\setlength{\rightskip}{0pt plus 5cm}updatedbEvent (
\begin{DoxyParamCaption}
\item[{\$}]{z}
\end{DoxyParamCaption}
)}}
\label{db_event_type_8php_a0e4f7f208b6271f56ffddb34cefc4912}
Updates an event date in the database by deleting it (if it exists) and then replacing it. 
\begin{DoxyParams}[1]{Parameters}
date & {\em \$ed} & replace date.\\
\hline
\end{DoxyParams}
Updates a street in the database by deleting it (if it exists) and then replacing it. 
\begin{DoxyParams}[1]{Parameters}
string & {\em \$s} & replace street.\\
\hline
\end{DoxyParams}
Updates a city in the database by deleting it (if it exists) and then replacing it. 
\begin{DoxyParams}[1]{Parameters}
string & {\em \$c} & replace city.\\
\hline
\end{DoxyParams}
Updates a state in the database by deleting it (if it exists) and then replacing it. 
\begin{DoxyParams}[1]{Parameters}
string & {\em \$st} & replace state.\\
\hline
\end{DoxyParams}
Updates a zipcode in the database by deleting it (if it exists) and then replacing it. 
\begin{DoxyParams}[1]{Parameters}
string & {\em \$z} & replace zip. \\
\hline
\end{DoxyParams}
